package com.thread.thread;

/**
 * @author wangyingjie
 * @date
 * @remark
 */
public class MyThread_2 extends Thread {

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"===> "+i);
        }
    }

    

    public static void main(String[] args) {//主线程
        MyThread_2 thread2 = new MyThread_2();
        thread2.setDaemon(true);//设置为后台线程
        thread2.start();
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"===> "+i);
        }
    }

    private static <String> String method() {
        return null;
    }
}
